package org.flynenu.ums.dao.impl;

import java.util.Collections;
import java.util.List;

import org.flynenu.core.dao.base.BaseDao;
import org.flynenu.ums.common.entity.Role;
import org.flynenu.ums.dao.RoleDao;


public class RoleDaoImpl extends BaseDao implements RoleDao {
	@SuppressWarnings("unchecked")
	@Override
	public List<Role> queryRoles(){
		List<Role> list = session().createSQLQuery("select * from role").list();
		
		return (List<Role>) (list == null? Collections.emptyList(): list);
	}
}
